package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;

import java.util.List;

public interface ITravelCommentService {

    /**
     * 保存游记评论
     * @param comment
     * @return
     */
    TravelComment commentAdd(TravelComment comment);

    List<TravelComment> listCommentByDetailId(Long travelId);

    /**
     * 通过用户id查询游记评论
     * @param userId
     * @return
     */
    List<TravelComment> findByUserId(Long userId);
}
